<template>
  <div>
    <div>测试v-model：{{ value }}----{{ msg }}---{{ abc }}</div>
    <button @click="handleUpdate">修改</button>
  </div>
</template>
<script>
export default {
  name: 'MyChild',
  props: {
    value: {
      type: String,
      default: ''
    },
    msg: {
      type: String,
      default: ''
    },
    abc: {
      type: String,
      default: ''
    }
  },
  methods: {
    handleUpdate () {
      // 修改value的值
      // this.value = 'hello'
      this.$emit('input', 'hello')
      this.$emit('update:msg', 'coniqiwa')
      this.$emit('update:abc', 'aligatogozayimasi')
    }
  }
}
</script>
